import http from "@/libs/http";
class HomeServer {
    // 获取订单统计
    async getOderCount() {
        let res = await http.get("/order/count");
        return res;
    }

    async getUserCount() {
        let res = await http.get("/user/count");
        return res;
    }

    async getSalesRank() {
        let res = await http.get("/index/salesRank");
        return res;
    }

    async userRecommendRank() {
        let res = await http.get("/index/userRecommendRank");
        return res;
    }
}

const homeServer = new HomeServer();
export default homeServer;